<template>
  <div class="goodslist">
    <goods-list-item
      v-for="(item,index) in goodsList"
      :key="index"
      :goods="item"
      class="goods-list-item"
    />
  </div>
</template>

<script>
import GoodsListItem from "./GoodsListItem";

export default {
  props: {
    goodsList: {
      type: Array,
      default() {
        return [];
      }
    }
  },
  data() {
    return {};
  },
  components: {
    GoodsListItem
  }
};
</script>

<style lang='scss' scoped>
.goodslist {
  display: flex;
  flex-wrap: wrap;
  .goods-list-item {
    width: 45.5%;
    margin-left: 3%;
  }
}
</style>